var Editor = new Object();
Editor.STATE = new Object();
Editor.LANG = new Object();
Editor.Decks = new Object();
Editor.Draggers = new Object();
Editor.Models = new Object();
Editor.Shapes = new Object();

Editor.LANG.EN = {
	code: 'en',
	TITLE: 'Editor',
	UNDO: 'Undo',
	REDO: 'Redo',
	ADD_RESOURCE: '+ R',
	ADD_LITERAL: '+ L',
	ADD_CLASS: '+ C',
	ADD_PROPERTY: '+ P',
	ADD_INDIVIDUAL: '+ I',
	DELETE_SELECTED: 'Delete',
	TOGGLE_LANG_UI: 'Cambiar Lenguaje',
	SEND: 'Send',
	CLOSE: 'Close',
	RESOURCE: 'Resource',
	LITERAL: 'Literal',
	CLASS: 'Class',
	PROPERTY: 'Property',
	INDIVIDUAL: 'Individual',
	NEW_DIAGRAM: 'New',
	EXPORT_DIAGRAM: 'Export',
	IMPORT_DIAGRAM: 'Import',
	OPTIONS: 'Options',
	ABOUT: 'About',
	CLEAR: 'Clear',
}

Editor.LANG.ES = {
	code: 'es',
	TITLE: 'Editor',
	UNDO: 'Deshacer',
	REDO: 'Restaurar',
	ADD_RESOURCE: '+ R',
	ADD_LITERAL: '+ L',
	ADD_CLASS: '+ C',
	ADD_PROPERTY: '+ P',
	ADD_INDIVIDUAL: '+ I',
	DELETE_SELECTED: 'Borrar',
	TOGGLE_LANG_UI: 'Change Language',
	SEND: 'Enviar',
	CLOSE: 'Cerrar',
	RESOURCE: 'Recurso',
	LITERAL: 'Literal',
	CLASS: 'Clase',
	PROPERTY: 'Propiedad',
	INDIVIDUAL: 'Individuo',
	NEW_DIAGRAM: 'Nuevo',
	EXPORT_DIAGRAM: 'Exportar',
	IMPORT_DIAGRAM: 'Importar',
	OPTIONS: 'Opciones',
	ABOUT: 'Acerca',
	CLEAR: 'Limpiar',
}

// http://www.colourlovers.com/
Editor.CONFIG = {
	BACKGROUND_ATTR: { fill: '#FFF', 'stroke-width': 0, stroke: '#FFF', 'opacity': 1 },
	CANVAS_HEIGHT: 2000,
	CANVAS_WIDTH: 2000,
	CIRCLEVOCABINDIVIDUAL_ATTR: { fill: '#FFF', 'fill-opacity': 1, 'stroke-width':  2, stroke: '#000' },
	CONNECTOR_ATTR: { stroke: '#000', 'stroke-width':  2, 'stroke-dasharray': '', 'opacity': 1 },
	CONNECTOR_OVER_ATTR: { stroke: '#F00', 'stroke-width':  4, 'stroke-dasharray': '', 'opacity': .5 },
	CONNECTORRESIZE_ATTR: { stroke: '#00F', 'stroke-width':  2, 'opacity': 1 },
	DEBUG: true,
	DECKEDIT_ATTR: { 'stroke-width':  2, fill: '#FFF', stroke: '#000', 'fill-opacity': 0, 'stroke-opacity': 0, },
	DECKEDIT_ATTR_TEXTSYMBOL: { 'stroke-width':  0, 'font': '13px "Times"', 'font-style':'italic', fill: '#FFF', 'fill-opacity': 0, 'stroke-opacity': 0, opacity: 0},
	DECKEDIT_ATTR_TEXTSYMBOL_VISIBLE: { fill: '#0F0', stroke: '#0F0', 'opacity': 1 },
	DECKEDIT_ATTR_VISIBLE: { 'fill-opacity': .1, 'stroke-opacity': 1 },
	DECKEDIT_DELTA: 5,
	DECKEDIT_RADIUS: 7,
	DECKEDIT_TEXTSYMBOL: 'i',
	DETAIL_ATTR: { fill: '#FF0', 'fill-opacity': .5, 'stroke-width':  2, 'stroke-opacity': 1, stroke: '#FF0' },
	DETAIL_DELTA: 3,
	DETAIL_DELTA_X: 20,
	DETAILTEXT_ATTR: { 'font-size': '10px', 'font-family': 'Arial', fill: '#000', 'opacity': 1, 'text-anchor': 'start' },
	DRAGGERCANVAS_RECT_ATTR: { stroke: '#0CC', 'stroke-width': 2, 'stroke-dasharray': '-', fill: '#0DD', 'fill-opacity': .1, },
	FIGARROWPOINT_ATTR: {stroke: '#000', 'stroke-width':  2, 'stroke-dasharray': '', 'opacity': 1, fill: '#FFF', 'fill-opacity': 1},
	FIGARROWPOINT_RADIUS: 4,
	FIGARROWPOINT_RANGE_RADIUS: 2,
	FIGBACK_ATTR: { fill: '#FFF', 'fill-opacity': 0, 'stroke-width': 2, 'stroke-opacity': 0, stroke: '#FFF' },
	FIGBACK_ATTR_VISIBLE: { 'fill-opacity': 1, 'stroke-opacity': 1, },
	FIGCLOSE_ATTR: { stroke: '#F00', 'stroke-width':  2, fill: '#FFF', 'opacity': .0 },
	FIGCLOSE_DELTA_X: 6,
	FIGCLOSE_DELTA_Y: -4,
	FIGCLOSE_PATH: ['M', 0, 0, 'L', 10, 0, 10, 10, 0, 10, 0, 0, 'M', 3, 3, 'L', 7, 7, 'M', 7, 3, 'L', 3, 7].join(','),
	FIGCONNECTION_ATTR: { stroke: '#000', fill: '#000', 'stroke-dasharray': '', 'stroke-width':  1, opacity: 1 },
	FIGCONNECTION_RANGE_ATTR: { stroke: '#000', fill: '#000', 'stroke-dasharray': '', 'stroke-width':  2, opacity: 1 },
	FIGCONNECTOR_ATTR: { stroke: '#00F', 'stroke-width':  2, fill: '#FFF', 'opacity': .0 },
	FIGCONNECTOR_RADIUS: 5,
	FIGRESIZE_ATTR: { stroke: '#0F0', 'stroke-width':  2, fill: '#FFF', 'opacity': .0 },
	FIGRESIZE_DELTA: 6,
	FIGRESIZE_PATH: ['M', 0, 10, 'L', 10, 10, 10, 0, 0, 10].join(','),
	GRID_ATTR: { stroke: '#EEE', opacity: .4, 'stroke-width': 1 },
	GRID_DRAW: false,
	GRID_SIZE: 10,
	GRID_SNAP: true,
	LITERAL_SHAPE_ATTR: { fill: '#FFF', 'fill-opacity': 0.1, 'stroke-width':  2, stroke: '#000' },
	LITERAL_SHAPE_HEIGHT: 20,
	LITERAL_SHAPE_WIDTH: 100,
	PROPERTY_SHAPE_ATTR: { fill: '#FFF', 'fill-opacity': 0.1, 'stroke-width':  2, stroke: '#000', },
	PROPERTY_SHAPE_HEIGHT: 20,
	PROPERTY_SHAPE_WIDTH: 100,
	PROPERTY_SHAPE_ROUNDED: 10,
	PROPERTY_TEXT_ATTR: { 'font-size': '10px', 'font-family': 'Arial', 'fill': '#000' },
	RESOURCE_SHAPE_ATTR: { fill: '#FFF', 'fill-opacity': 0.1, 'stroke-width':  2, stroke: '#000' },
	RESOURCE_SHAPE_HEIGHT: 20,
	RESOURCE_SHAPE_WIDTH: 100,
	RESOURCE_SHAPE_ROUNDED: 10,
	SHAPE_ATTR_BACKGROUND: { fill: '#FFF', 'stroke-width': 2, 'fill-opacity': 1, stroke: 'FFF' },
	SHAPE_ATTR_MOUSEOVER: { fill: '#eee', stroke: 'black' },
	SHAPE_ATTR_SELECTED: { 'stroke-width':  4, stroke: '#009989', 'stroke-opacity': .3 },
	SHAPE_ATTR_TEXT: { 'font-weight':'bold', 'font-size': '10px', 'font-family': 'Arial', fill: '#000' },
	SHAPE_DELTA_SELECTED: 4,
	SHAPE_FRAMERESIZE_ATTR: { stroke: '#444', 'stroke-width': 1, 'stroke-dasharray': '-', 'opacity': 1 },
	SHAPE_MIN_HEIGHT: 20,
	SHAPE_MIN_WIDTH: 100,
	SHAPE_TEXT_DELTA_X: 2,
	SHAPE_TEXT_DELTA_Y: 2,
	INVISIBLE_ATTR: { 'opacity': .0 },
	VISIBLE_ATTR: { 'opacity': 1 },
	DECK_VOCABCLASS_DELTA_PROPS: 5,
	VOCABCLASS_SHAPE_ATTR: {fill: '#FFF', 'fill-opacity': 0.1, 'stroke-width':  2, stroke: '#000'},
	VOCABCLASS_SHAPE_RADIUS: 5,
	VOCABCLASS_SHAPE_WIDTH: 100,
	VOCABCLASS_SHAPE_HEIGHT: 50,
	VOCABINDIVIDUAL_SHAPE_ATTR: {fill: '#FFF', 'fill-opacity': 0.1, 'stroke-width':  2, stroke: '#000'},
	VOCABPROPERTY_SHAPE_ATTR: {fill: '#FFF', 'fill-opacity': 0.1, 'stroke-width':  2, stroke: '#000'},
	DECK_CIRCLEVOCABINDIVIDUAL_RADIUS: 10,
	DECK_CORNERLITERAL_DELTA: 10,
	DECK_LINECLASS_DELTA_Y: 20,
	DECK_LINECLASS_DELTA_X: 7,
}
